package org.thingsboard.server.dao.model.sqlts.influx.ts;

import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import static org.thingsboard.server.dao.model.ModelConstants.*;

/**
 * @author: sanhoitou[sanhoitou@hotmail.com]
 * @Date: 2021/5/18
 */
@Data
@Measurement(name = "ts_kv")
public class TsKv {

    @Column(name = ENTITY_ID_COLUMN , tag = true)
    private String entityId;

    @Column(name = KEY_COLUMN , tag = true)
    private String key;

//    @Column(name = "partition")
//    private Integer partition;

    @Column(name = "time")
    private String time;

    @Column(name = BOOLEAN_VALUE_COLUMN)
    private Boolean boolV;

    @Column(name = DOUBLE_VALUE_COLUMN)
    private Double dblV;

    @Column(name = JSON_VALUE_COLUMN)
    private String jsonV;

    @Column(name = LONG_VALUE_COLUMN)
    private Long longV;

    @Column(name = STRING_VALUE_COLUMN)
    private String strV;

}
